/*
 * @Author: your name
 * @Date: 2021-12-22 14:19:25
 * @LastEditTime: 2022-03-25 14:51:06
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \xy-web-xiaoxi\src\api\base\attachment.js
 */
import request from '@/utils/request'

/**
 * 删除附件
 * @param data
 * @returns {AxiosPromise}
 */
export function deleteAttachment(data) {
  return request({
    url: '/api/base/attachment/delete',
    method: 'post',
    data
  })
}

/**
 * 上传附件
 * @param data
 * @returns {AxiosPromise}
 */
export function uploadAttachment(data) {
  return request({
    url: '/api/base/attachment/upload_attachment',
    method: 'post',
    data
  })
}

/**
 * 获取bizType
 * @param data
 * @returns {AxiosPromise}
 */
export function listPreOptionsAttachment() {
  return request({
    url: '/api/base/attachment/list_pre_options',
    method: 'get',
  })
}
